<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/util_file/common.jspf"%>
<link rel="stylesheet" type="text/css" media="screen" href="/jeons/css/default.css" />
<<script type="text/javascript">
$(document).ready( function(){
	//수정
	$("#BtnModify").click( function(){
		location.href = '/jeons/admin/buildproduct/qna/insert?qnano='+$("#tmpqnano").val()+'&replyno='+$('#bd_replyno').val(); 
	});
	//삭제
	$("#BtnDelete").click( function(){
		location.href='/jeons/admin/buildproduct/qna/delete?qnano='+$("#tmpqnano").val();
	});
	
	
	
});
</script>
<input type="text" value="${data.qnano}" id="tmpqnano"/>
<div id="default">
<div><img src="/jeons/images/titledot.gif" />상품 정보</div>
<table border="0" width="650px" height="50">
	<tr>
		<td colspan="4" bgcolor="#000000" height="1"></td>
	</tr>
	<tr>
		<th height="24" align="center">상품번호</th>
		<td colspan="3" width="400px">${data.bdno} </td>
	</tr>
	<tr>
		<td colspan="4" bgcolor="#ffffff" height="1"></td>
	</tr>
	<tr>
		<th height="24" align="center">상품이름</th>
		<td colspan="3">${data.gooods_names} </td>
	</tr>
	<tr>
		<td colspan="4" bgcolor="#ffffff" height="1"></td>
	</tr>
	<tr>
	<tr>
		<td colspan="4" bgcolor="#000000" height="1"></td>
	</tr>
</table>

<br>
<div><img src="/jeons/images/titledot.gif" />고객의 글</div>
<table border="0" width="650px" height="50">
	<tr>
		<td colspan="4" bgcolor="#000000" height="1"></td>
	</tr>
	<tr>
		<th height="24" align="center">제목</th>
		<td colspan="3" width="400px">${data.title} </td>
	</tr>
	<tr>
		<td colspan="4" bgcolor="#ffffff" height="1"></td>
	</tr>
	<tr>
		<th height="24" align="center">유저아이디</th>
		<td colspan="3">${data.u_id}</td>
	</tr>
	<tr>
		<td colspan="4" bgcolor="#ffffff" height="1"></td>
	</tr>
	<tr>
		<td colspan="4" bgcolor="#ffffff" height="1"></td>
	</tr>
	<tr>
		<th colspan="4" height="4" align="center">내용</th>
	</tr>
	<tr>
		<td colspan="4" bgcolor="#ffffff" height="1"></td>
	</tr>
	<tr>
		<td colspan="4" bgcolor="#ffffff" height="1">
			${data.content}
		</td>
	</tr>
	<tr>
	<tr>
		<td colspan="4" bgcolor="#000000" height="1"></td>
	</tr>
</table> 
<br>
<div><img src="/jeons/images/titledot.gif" />답변</div>
<input type="text" value="${reply.replyno}" id="bd_replyno"/>
<table border="0" width="650px" height="50">
	<tr>
		<td colspan="4" bgcolor="#000000" height="1"></td>
	</tr>
	<tr>
		<th height="24" align="center" colspan="4">답변글</th>
	</tr>
	<tr>
		<td colspan="4" bgcolor="#ffffff" height="1"></td>
	</tr>
	<tr>
		<td colspan="4" bgcolor="#ffffff" height="1">
			${reply.content}
		</td>
	</tr>
		<td colspan="4" bgcolor="#ffffff" height="1"></td>
	</tr>
	<tr>
		<td colspan="4" bgcolor="#000000" height="1"></td>
	</tr>
</table>
<div align="right">
	<button type="button" id="BtnModify">수정</button>
	<button type="button" id="BtnDelete">삭제</button>
	<a href="/jeons/admin/buildproduct/qna/"><button type="button">리스트</button></a>
</div>
</div>